package com.itheima;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public interface Animal {
    void sound();

    public static void test() {
        System.out.println("test");
    }

    public default void test2(){

        int a = 1 / 0;
        try {
            FileInputStream fis = new FileInputStream("a.txt");
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        }


        System.out.println("test2");
    }

    private void test3() {
        System.out.println("test3");
    }
}


